# while 条件:
#     循环体
# 死循环
# while True:
#     print(1)

# 活循环
# count = 5
# while count:   # 数字不为零都为真
#     print(count)
#     count -= 1
# print('end')
#
# count = -5
# while count:   # 数字不为零都为真
#     print(count)
#     count += 1
# print('end')

# 57--27倒序
# count = 57
# while count >= 27:
#     print(count)
#     count -= 1
# print('end')

# break 与 continue
# while True:
#     print(1)
#     print(2)
#     break   # 中断循环
#     print(3)
# print('end')
#
# while True:
#     print(1)
#     print(2)
#     continue    # 跳出此次循环，继续下一次循环
#     print(3)

# while else
# while True:
#     print(True)
# else:           # 当条件不满足时执行else
#     print(False)

# 打断循环方式
#     1，修改自己条件
#     2.break

# 测验
# while True:
#     choose = input('请输入A,B,C其中一个选项:')
#     if choose == 'A':
#         choose2 = input('1是公交,2是步行:')
#         if choose2 == '1':
#             print("10分钟")
#             break
#         else:
#             print("20分钟")
#             break
#     elif choose == 'B':
#         print("小路回家")
#         break
#     elif choose == 'C':
#         choose2 = input('1是游戏厅,2是网吧:')
#         if choose2 == '1':
#             print("爸打")
#             continue
#         else:
#             print("妈打")
#             continue
